<? 	
include('header.php');
        include_once('inc/global.php');

        require_once('inc/loginauth.php');
        if(isset($_REQUEST['email']))
                DoLogin($_REQUEST['email'],$_REQUEST['password']);
?>

</head>
<body>
<?
	include('inc/nav.php');
?>
<div class="contentstuff">

        <? if(IsLoggedIn()){ ?>
                <h1>Yay You are Logged In</h1>
    <? }else{ ?>
        <form method="post">
                <input type="email" name="email" />
            <input type="password" name="password" />
            <input type="submit" value="Log In" />
        </form>
    <? } ?>
    </div>
	</body>
    </html>